<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index</title>

    <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}"></link>
    <link rel="stylesheet" th:href="@{/static/layui/css/style.css}"></link>
    <script th:src="@{/static/jquery/jquery-3.2.1.min.js}"></script>
    <script th:src="@{/static/layui/layui.js}"></script>
</head>
<body>

<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">cloudoer 后台管理</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    管理员
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" class="admin-index-menu" data-url="基本资料">基本资料</a></dd>
                    <dd><a href="javascript:;" class="admin-index-menu" data-url="安全设置">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/exit">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item">
                    <a href="javascript:;" class="index-menu" data-url="/tag/index">标签管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" class="index-menu" data-url="/article/index">文章管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" class="index-menu" data-url="/album/index">相册管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" class="index-menu" data-url="/filetype/index">文件管理</a>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;" class="index-menu" data-url="/member/index">用户管理</a>
                </li>
            </ul>
        </div>
    </div>

    <div id="index_content" class="layui-body">
        <!-- 内容主体区域 -->
        123
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © harsingo.com
    </div>
</div>
<script>
    $(function () {
        layui.use('element', function(){
            var element = layui.element;
            $('.index-menu').on('click', function () {
                $('#index_content').load($(this).attr('data-url'));
                return false;
            });
        });
    });
</script>
</body>
</html>